package com.xinyue.auto.reader.process;

import java.util.ArrayList;

import com.xinyue.auto.bean.Attribute;
import com.xinyue.auto.bean.Entity;
import com.xinyue.auto.bean.Query;
import com.xinyue.auto.reader.Process;

public class Work extends Process{

	@Override
	public void work() {
		//创建Entity对象并注入
		Entity entity = new Entity();
		
		entity.setAtts(new ArrayList<Attribute>());
		entity.setFinds(new ArrayList<Query>());
		entity.setBasePkg(holder.getBasePkg());
		
		holder.setEntity(entity);
		
		entity.setBeanImpt(holder.getBeanImpt().getList());
		entity.setDaoImpt(holder.getDaoImpt().getList());
		entity.setDaoImptExt(holder.getDaoImptExt().getList());
	}
}
